Method and system for Gaussian probability data bit reduction and computation

ABSTRACT

Use of runtime memory may be reduced in a data processing algorithm that uses one or more probability distribution functions. Each probability distribution function may be characterized by one or more uncompressed mean values and one or more variance values. The uncompressed mean and variance values may be represented by α-bit floating point numbers, where α is an integer greater than 1. The probability distribution functions are converted to compressed probability functions having compressed mean and/or variance values represented as β-bit integers, where β is less than α, whereby the compressed mean and/or variance values occupy less memory space than the uncompressed mean and/or variance values. Portions of the data processing algorithm can be performed with the compressed mean and variance values.

FIELD OF THE INVENTION

This application relates to speech recognition and more particularly to computing Gaussian probability in speech recognition methods and systems.

BACKGROUND OF THE INVENTION

Speech recognition technologies allow computers and other electronic devices equipped with a source of sound input, such as a microphone, to interpret human speech, e.g., for transcription or as an alternative method of interacting with a computer. Speech recognition software is being developed for use in consumer electronic devices such as mobile telephones, game platforms, personal computers and personal digital assistants. In a typical speech recognition algorithm, a time domain signal representing human speech is broken into a number of time windows and each window is converted to a frequency domain signal, e.g., by fast Fourier transform (FFT). This frequency or spectral domain signal is then compressed by taking a logarithm of the spectral domain signal and then performing another FFT. From the compressed signal, a statistical model can be used to determine phonemes and context within the speech represented by the signal.

Speech recognition systems often use a Hidden Markov Model (HMM) to determine the units of speech in a given speech signal. The speech units may be words, two-word combinations or sub-word units, such as phonemes and the like. The HMM is characterized by:

L, which represents a number of possible states of the system;

M, which represents the total number of Gaussians that exist in the system;

N, which represents the number of distinct observable features at a given time; these features may be spectral (i.e., frequency domain) or temporal (time domain) features of the speech signal;

A={a_(ij)}, a state transition probability distribution, where each a_(ij) represents the probability that the system will transition to the j^(th) state at time t+1 if the system is initially in the i^(th) state at time t;

B={b_(j)(k)}, an observation feature probability distribution for the j^(th) state, where each b_(j)(k) represents the probability distribution for observed values of the k^(th) feature when the system is in the j^(th) state; and

π={π_(i)}, an initial state distribution, where each component π_(i) represents the probability that the system will be in the i^(th) state at some initial time.

Hidden Markov Models can solve three basic problems of interest in real world applications, such as speech recognition: (1) Given a sequence of observations of a system, how can one efficiently compute the probability of the observation sequence; (2) given the observation sequence, what corresponding state sequence best explains the observation sequence; and (3) how can one adjust the set of model parameters A, B π to maximize the probability of a given observation sequence.

The application of HMMs to speech recognition is described in detail, e.g., by Lawrence Rabiner in “A Tutorial on Hidden Markov Models and Selected Applications in Speech Recognition” in Proceedings of the IEEE, Vol. 77, No. 2, February 1989, which is incorporated herein by reference in its entirety for all purposes. Real-world processes generally produce observable outputs which can be characterized as signals. The signals can be discrete in nature (e.g., characters from a finite alphabet, quantized vectors from a codebook, etc.), or continuous in nature (e.g., speech samples, temperature measurements, music, etc.). The signal source can be stationary (i.e., its statistical properties do not vary with time), or nonstationary (i.e., the signal properties vary over time). The signals can be pure (i.e., coming strictly from a single source), or can be corrupted from other signal sources (e.g., noise) or by transmission distortions, reverberation, etc. Human speech can be characterized by a number of recognizable patterns known as phonemes. Each of these phonemes can be broken down in a number of parts, e.g., a beginning, middle and ending part. It is noted that the middle part is typically the most stable since the beginning part is often affected by the preceding phoneme and the ending part is affected by the following phoneme. The different parts of the phonemes are characterized by frequency domain features that can be recognized by appropriate statistical analysis of the signal. The statistical model often uses Gaussian probability distribution functions to predict the probability for each different state of the features that make up portions of the signal that correspond to different parts of different phonemes. One HMM state can contain one or more Gaussians. A particular Gaussian for a given possible state, e.g., the k^(th) Gaussian can be represented by a set of N mean values μ_(ki) and variances σ_(ki). In a typical speech recognition algorithm one determines which of the Gaussians for a given time window is the largest one. From the largest Gaussian one can infer the most probable phoneme for the time window.

In typical speech recognition software, each mean and variance for each Gaussian is represented by a 32-bit floating point number. Since there may be a large number of different possible Gaussians, the determination of the most probable state may involve calculations involving between several hundred and several thousand Gaussians. A significant number of floating point operations must be performed on each Gaussian during the speech recognition algorithm, and the correspondingly large number of 32-bit parameters leads to a considerable demand on the available memory of the computer or other signal processing device that performs the speech recognition. It would be desirable to perform the Gaussian computations in a way that reduces that demand on available memory without sacrificing recognition accuracy.

SUMMARY OF THE INVENTION

According to embodiments of the present invention, use of runtime memory may be reduced in a data processing algorithm that uses one or more probability distribution functions. Each probability distribution function may be characterized by one or more uncompressed mean values and one or more variance values. The uncompressed mean and variance values may be represented by α-bit floating point numbers, where a is an integer greater than 1. The probability distribution functions are converted to compressed probability functions having compressed mean and/or variance values represented as β-bit integers, where β is less than α, whereby the compressed mean and/or variance values occupy less memory space than the uncompressed mean and/or variance values. Portions of the data processing algorithm can be performed with the compressed mean and variance values.

BRIEF DESCRIPTION OF THE DRAWINGS

The teachings of the present invention can be readily understood by considering the following detailed description in conjunction with the accompanying drawings, in which:

FIG. 1 is a flow diagram illustrating a recognition algorithm according to an embodiment of the present invention.

FIG. 2 is a flow diagram illustrating a schematic diagram of a signal processing apparatus operating with recognition algorithm of the type depicted in FIG. 1 according to an embodiment of the present invention.

DESCRIPTION OF THE SPECIFIC EMBODIMENTS

Although the following detailed description contains many specific details for the purposes of illustration, anyone of ordinary skill in the art will appreciate that many variations and alterations to the following details are within the scope of the invention. Accordingly, the exemplary embodiments of the invention described below are set forth without any loss of generality to, and without imposing limitations upon, the claimed invention.

Application of embodiments of the present invention described herein to the particular case of recognition algorithms, such as speech recognition can be seen from the flow diagram of algorithm 100 of FIG. 1. Specifically, at 102, a time domain signal is analyzed to obtain N different observable signal features x₀ . . . x_(n), where n=N−1. The observed feature of the system can be represented as a vector having components x₀ . . . x_(n). These components may be spectral, cepstral, or temporal features of a given observed speech signal.

By way of example and without limitation of the embodiments of the invention, the components x₀ . . . x_(n) may be cepstral coefficients of the speech signal. A cepstrum (pronounced “kepstrum”) is the result of taking the Fourier transform (FT) of the decibel spectrum as if it were a signal. The cepstrum of a time domain speech signal may be defined verbally as the Fourier transform of the log (with unwrapped phase) of the Fourier transform of the time domain signal. The cepstrum of a time domain signal S(t) may be represented mathematically as FT(log(FT(S(t)))+j2πq), where q is the integer required to properly unwrap the angle or imaginary part of the complex log function. Algorithmically: the cepstrum may be generated by the sequence of operations: signal→FT→log→phase unwrapping→FT cepstrum.

There is a complex cepstrum and a real cepstrum. The real cepstrum uses the logarithm function defined for real values, while the complex cepstrum uses the complex logarithm function defined for complex values also. The complex cepstrum holds information about magnitude and phase of the initial spectrum, allowing the reconstruction of the signal. The real cepstrum only uses the information of the magnitude of the spectrum. By way of example and without loss of generality, the algorithm 100 may use the real cepstrum.

The cepstrum can be seen as information about rate of change in the different spectrum bands. For speech recognition applications, the spectrum is usually first transformed using the Mel Frequency bands. The result is called the Mel Frequency Cepstral Coefficients or MFCCs. A frequency f in hertz (cycles per second) may be converted a dimensionless pitch m according to: m=1127.01048 log_(e)(1+f/700). Similarly a mel pitch can be converted to a frequency in hertz using: f=700(e^(m/1127.01048)−1).

Certain patterns of combinations of components x₀ . . . x_(n) correspond to units of speech (e.g., words) or sub-units, such as syllables, phonemes or other sub-units of words. Each unit or sub-unit may be regarded as a state of the system. The probability density function ƒ_(k)(x₀ . . . x_(n)) for a given Gaussian of the system (the k^(th) Gaussian) may be any type of probability density function, e.g., a Gaussian function having the following form:

$\begin{matrix} {{{f_{k}\left( {x_{0}\mspace{11mu}\ldots\mspace{11mu} x_{n}} \right)} = {\frac{1}{\sqrt{\delta_{k}}}{\exp\left( {- {\sum\limits_{i}\frac{\left( {x_{i} - \mu_{ki}} \right)^{2}}{2 \cdot \sigma_{ki}^{2}}}} \right)}}}{{{where}\mspace{14mu}\delta_{k}} = {\prod\limits_{i}\;\left( {2{\pi \cdot \sigma_{ki}^{2}}} \right)}}{{i = {1\mspace{11mu}\ldots\mspace{11mu} N}},{k = {1\mspace{11mu}\ldots\mspace{11mu}{M.}}}}} & (1) \end{matrix}$

In the above equations, “i” is an index for feature and “k” is an index for Gaussian. In equation (1), the subscript k is an index for the Gaussian function. There may be several hundred to several hundred thousand Gaussians used by the speech recognition algorithm. The quantity μ_(ki) is a mean value for the feature x_(i) in the k^(th) Gaussian of the system. The quantity σ_(ki) ² is the variance for x_(i) in the k^(th) Gaussian. As indicated at 104 in FIG. 1, there are L different states, which contain a total number of M Gaussians in the system. The quantity μ_(ki) is the mean for all measurements of x_(i) that belong to f_(k)(x₀ . . . x_(N)) over all time windows of training data and σ_(ki) is the variance for the corresponding measurements used to compute μ_(ki).

Usually, each quantity (x_(i), μ_(ki), σ_(ki)) is represented by a floating data type characterized by a number of bits α. By way of example, α=32, although other values of α, such as 64-bit, 16, bit, or any other suitable integer number of bits may be used. The parameters {x_(i), μ_(ki), σ_(ki) for i=1 . . . N, k=1 . . . M} occupy a major part of the memory used by acoustic models during program run time. The redundant parameter δ_(k) is stored for computation efficiency in realtime.

Referring again to FIG. 1, at 106, the Gaussians are converted to a compressed form to save the run time memory. Embodiments of the present invention a method compress the means μ_(ki), and variances σ_(ki) ² from an α-bit floating point representation to a β-bit fix point data type {{circumflex over (μ)}_(ki),{circumflex over (ζ)}_(ki)}, where β is less than α. The observable components x_(i) are also compressed from α-bit floating point to β-bit integer {circumflex over (x)}_(i). It is also possible to convert from α bits to a β-bit integer where β<α using the same equations shown below.

The Gaussians of equation (1) can be rewritten as compressed Gaussians in terms of a compressed mean {circumflex over (μ)}_(ki), compressed variance {circumflex over (ζ)}_(ki) as:

$\begin{matrix} {{{{\hat{f}}_{k}\left( {x_{0}\mspace{11mu}\ldots\mspace{11mu} x_{n}} \right)} = {\frac{1}{\sqrt{\delta_{k}}}{\exp\left( {{- \frac{1}{2}}{a \cdot \left( {\sum\limits_{i}{\left( {{\hat{x}}_{i} - {\hat{\mu}}_{ki}} \right)^{2} \cdot {\hat{ϛ}}_{ki}}} \right)}} \right)}}}{where}{{\delta_{k} = {\prod\limits_{i}\;\left( {2{\pi \cdot \sigma_{ki}^{2}}} \right)}},}} & (2) \end{matrix}$ a determinant, is an α-bit floating point number as defined above {circumflex over (x)}_(i)φ((x_(i)-b_(i))•c_(i)) is a β-bit integer representing a compressed observable component {circumflex over (μ)}_(ki)=φ((μ_(ki)b_(i))•c_(i)) is a β-bit integer representing a compressed mean for the i^(th) observable component in the k^(th) Gaussian.

${\hat{ϛ}}_{ki} = {\phi\left( \frac{1}{2\sigma_{ki}^{2}d_{i}} \right)}$ of β-bit integer integer representing a compressed variance for the i^(th) observable component in the k^(th) Gaussian.

${\phi(x)} = \left\{ \begin{matrix} {{{\Theta\_ if}{\_ x}} > \Theta} \\ {{{- {\Theta\_ if}}{\_ x}} < {- \Theta}} \end{matrix} \right.$ and φ(x)=the fixed point representation of x otherwise, where Θ=2⁶²−1

Extra parameters {a,b_(i),c_(i)} may be of α-bit floating point data type. However, these parameters are the same for all M Compressed Gaussian probability functions. Furthermore, the quantity a only needs to be calculated once.

In the above equations, the quantity a may be regarded as a universal scalar. The quantity b_(i) may be regarded as a centroid of all the means for the i^(th) observable feature taken over all M possible Gaussians. The quantity c_(i) may be regarded as a variance for the i^(th) observable feature taken over all M possible Gaussians. The computations of {a, b_(i),c_(i)} from the original (μ_(i),σ_(i)) are shown in the following equations:

${a = \frac{2}{\lambda^{3}}},{b_{i} = \frac{\sum\limits_{k = 1}^{M}\mu_{ki}}{M}},{c_{i} = {\lambda \cdot \sqrt{\frac{\sum\limits_{k = 1}^{M}\frac{1}{\sigma_{ki}^{2}}}{M}}}},{and}$ $d_{i} = \frac{\sum\limits_{k = 1}^{M}\frac{1}{\sigma_{ki}^{2}}}{M \cdot \lambda}$

The quantity d_(i) is the average of the inverse of all the variances The quantity λ is an integer global scaling factor that may take on a value between 1 and 100. The quantity λ may be adjusted empirically by trial and error to optimize recognition accuracy. This can be done by testing the speech recognition system against a known speech sample and determining the recognition accuracy for different values of λ. In one example implementation of a speech recognition algorithm using parameter compression as described herein, λ=30 was empirically determined to provide the best speech recognition performance for the feature {x_(i)} used by the program in a case where α=32 and β=8. Such empirical determination of λ may be done, e.g., by testing the speech recognition with compressed data against a known speech sample for different values of λ and determining which value of λ produces the highest recognition accuracy. The value of λ generally depends on the features chosen to model the speech recognition and on the values of α and β.

A more objective optimization of λ may be performed using the following equation:

$\lambda = {\arg\mspace{11mu}{\min\limits_{\lambda}\left( {\sum\limits_{k}{\sum\limits_{i}{\int{{\left( {{f_{k}\left( x_{i} \right)} - {{\hat{f}}_{k}\left( x_{i} \right)}} \right)^{2} \cdot \delta}\; x_{i}}}}} \right)}}$

-   -   where arg min refers to the value of λ that produces a minimum         value of the quantity

$\left( {\sum\limits_{k}{\sum\limits_{i}{\int{{\left( {{f_{k}\left( x_{i} \right)} - {{\hat{f}}_{k}\left( x_{i} \right)}} \right)^{2} \cdot \delta}\; x_{i}}}}} \right)$

-   -   where ∫δx_(i) denotes the integration over variable x_(i).

Since N is usually a lot smaller than M, say N=39, M=1000, run time memory of the new Gaussian parameters {{circumflex over (x)}_(i),δ_(ki),{circumflex over (ζ)}_(ki),a,b_(i),c_(i)} may be reduced significantly compared to the original parameters {x_(i),δ_(k),μ_(ki),σ_(ki)}). For example, when α=32 and β=8 the memory size for the compressed Gaussian data can be reduced to about 25% of that occupied by the uncompressed Gaussian data. Note that although in the preceding discussion the means μ_(ki), variances σ_(ki) and signal feature components x_(i) were all converted to compressed values, some useful level of memory size reduction can be obtained by compressing only one or two of these.

Once the Gaussian data have been compressed, the probability for each Gaussian can be computed using the compressed Gaussian functions of equation (2) as indicated at 108 in FIG. 1. After all the probabilities have been computed a maximum probability is determined as indicated at 110. From the Gaussian having the maximum probability one can build the most likely, state, word, phoneme, character, etc. for that particular time window. Note that it is also possible to use the most probable state for a given time window to help in determining the most probable state for earlier or later time windows since, these may determine a context in which the state occurs.

EXAMPLE

In one implementation of data compression as described above in a speech recognition task for American English, N=20, M=968 with α=32 and β=8 total data bit size for parameters {x_(k),δ_(ki),μ_(ki),σ_(ki)} is N*32+M*32+2*M*N*32. After compression, parameters, {circumflex over (x)}_(k),{circumflex over (μ)}_(ki), and {circumflex over (ζ)}_(ki) were computed as β-bit integers. The total data bit size for {{circumflex over (x)}_(k),δ_(k),{circumflex over (μ)}_(ki),{circumflex over (ζ)}_(ki),a,b_(i),c_(i)} after compression is N*β+M*32+2*M*N*β+32+2*N*32. The results are listed in Table I. In this example, there are 129 words in the grammar from which 745 different sentences can be constructed.

TABLE I Gaussian parameter bit size and speech recognition results Total data size in Recognition Memory bits accuracy reduction α = 32 bit float 1270656 96.2% — β = 8 bit integer 342208 96.8% 73.07%

It is noted that, in this example, the total data size after compression is about a quarter of the uncompressed data size. Most of the reduction in data size is the result of the compression of the mean and variance values from 32-bit floating to 8-bit integer. Note further that, in this example, there was no loss in recognition accuracy as a result of the compression.

According to embodiments of the present invention, a recognition algorithm (e.g., a speech recognition algorithm) of the type depicted in FIG. 1 operating as described above may be implemented as part of a signal processing apparatus 200, as depicted in FIG. 2. The system 200 may include a processor 201 and a memory 202 (e.g., RAM, DRAM, ROM, and the like). In addition, the signal processing apparatus 200 may have multiple processors 201 if parallel processing is to be implemented. The memory 202 includes data and code configured as described above. Specifically, the memory includes data representing signal features 204, and probability functions 206 each of which may include code, data or some combination of both code and data.

The apparatus 200 may also include well-known support functions 210, such as input/output (I/O) elements 211, power supplies (P/S) 212, a clock (CLK) 213 and cache 214. The apparatus 200 may optionally include a mass storage device 215 such as a disk drive, CD-ROM drive, tape drive, or the like to store programs and/or data. The controller may also optionally include a display unit 216 and user interface unit 218 to facilitate interaction between the controller 200 and a user. The display unit 216 may be in the form of a cathode ray tube (CRT) or flat panel screen that displays text, numerals, graphical symbols or images. The user interface 218 may include a keyboard, mouse, joystick, light pen or other device. In addition, the user interface 218 may include a microphone, video camera or other signal transducing device to provide for direct capture of a signal to be analyzed. The processor 201, memory 202 and other components of the system 200 may exchange signals (e.g., code instructions and data) with each other via a system bus 220 as shown in FIG. 2.

As used herein, the term I/O generally refers to any program, operation or device that transfers data to or from the system 200 and to or from a peripheral device. Every transfer is an output from one device and an input into another. Peripheral devices include input-only devices, such as keyboards and mouses, output-only devices, such as printers as well as devices such as a writable CD-ROM that can act as both an input and an output device. The term “peripheral device” includes external devices, such as a mouse, keyboard, printer, monitor, microphone, camera, external Zip drive or scanner as well as internal devices, such as a CD-ROM drive, CD-R drive or internal modem or other peripheral such as a flash memory reader/writer, hard drive.

The processor 201 may perform signal recognition including data compression of signal features 204 and/or probability functions 206 as described above in response to data and program code instructions of a program 203 stored and retrieved by the memory 202 and executed by the processor module 201. Code portions of the program 203 may conform to any one of a number of different programming languages such as Assembly, C++, JAVA or a number of other languages. The processor module 201 forms a general-purpose computer that becomes a specific purpose computer when executing programs such as the program code 203. Although the program code 203 is described herein as being implemented in software and executed upon a general purpose computer, those skilled in the art will realize that the method of task management could alternatively be implemented using hardware such as an application specific integrated circuit (ASIC) or other hardware circuitry. As such, it should be understood that embodiments of the invention can be implemented, in whole or in part, in software, hardware or some combination of both. In one embodiment, among others, the program code 203 may include a set of processor readable instructions that implement a method having features in common with the algorithm 100 of FIG. 1.

Embodiments of the present invention provide for faster operation of complex recognition algorithms such as speech recognition. Those of skill in the art will recognize that embodiments of the present invention may be readily applied to other types of recognition algorithms, including optical character recognition. In addition, the technique may be extended to HMMs that use probability functions other than Gaussian functions. Furthermore although compression from 32-bit floating point to 8-bit integer has been described, the technique described herein is generally applicable to any other suitable compression, e.g., 64-bit to 16-bit and the like provide β is less than α. Compression to fewer than 8 bits is within the scope of embodiments of the present invention. However, in general, for a given value of a there will be some practical lower limit for β beyond which the data compression may produce an unacceptable reduction in recognition accuracy.

While the above is a complete description of the preferred embodiment of the present invention, it is possible to use various alternatives, modifications and equivalents. Therefore, the scope of the present invention should be determined not with reference to the above description but should, instead, be determined with reference to the appended claims, along with their full scope of equivalents. Any feature described herein, whether preferred or not, may be combined with any other feature described herein, whether preferred or not. In the claims that follow, the indefinite article “A”, or “An” refers to a quantity of one or more of the item following the article, except where expressly stated otherwise. The appended claims are not to be interpreted as including means-plus-function limitations, unless such a limitation is explicitly recited in a given claim using the phrase “means for.” 

1. A speech recognition apparatus, comprising: a signal processor configured to observe N different features of an observed speech signal and set up M different probability distribution functions of the N different observable features, each probability distribution function representing a probability of a different one of M possible Gaussians of a portion of the observed speech signal, wherein each Gaussian is characterized by a corresponding uncompressed mean a corresponding uncompressed variance wherein the signal processor is configured to process the observed signal to determine the observable features for a time window and represent the one or more different states of the features with the M Gaussian probability distribution functions, wherein the uncompressed mean and variance values are represented by α-bit floating point numbers, where α is an integer greater than 1; wherein the signal processor is configured to convert the probability distribution functions to compressed probability functions having compressed mean and/or variance values represented as β-bit integers, where β is less than α, whereby the compressed mean and/or variance values occupy less memory than the uncompressed mean and/or variance values, wherein the signal processor is configured to calculate a probability for each of the M possible Gaussians using the compressed probability functions wherein each compressed mean value is equal to a function of a quantity, wherein the quantity is product of a difference between the uncompressed variance and a centroid of the means for a given observable feature for all possible Gaussians with a variance for the given observable feature for all possible Gaussians, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the quantity otherwise, wherein the signal processor is configured to determine a most probable state from the calculated probabilities for the M possible Gaussians, and wherein the signal processor is configured to recognize a recognizable pattern within the observed speech signal for the time window using the most probable state.
 2. The apparatus of claim 1 wherein the centroid of the means for a given observable feature for all possible Gaussians is equal to a sum of the uncompressed means for the M Gaussians divided by M.
 3. The apparatus of claim 1 wherein the variance for a given observable feature for all possible Gaussians is equal to an integer global scaling factor multiplied by a square root, wherein the square root is a square root of a quotient, wherein the quotient is a sum divided by M, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians for the given observable feature.
 4. The apparatus of claim 1 wherein converting the probability distribution functions to compressed probability functions includes compressing values for the one or more observable features from α-bit floating point type to compressed observable feature values of β-bit integer type.
 5. The apparatus of claim 4 wherein each compressed observable feature value is equal to a function of a quantity, wherein the quantity is a product of a difference between a given observable feature value and the centroid of the means for a given observable feature for all possible Gaussians with the variance for the given observable feature for all possible Gaussians, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the quantity otherwise.
 6. The apparatus of claim 5 wherein the centroid of the means for a given observable feature for all possible Gaussians is equal to a sum of the uncompressed means for the M Gaussians divided by M.
 7. The apparatus of claim 5 wherein the variance for a given observable feature for all possible Gaussians is equal to an integer global scaling factor chosen to optimize recognition accuracy multiplied by a square root, wherein the square root is a square root of a quotient, wherein the quotient is a sum divided by M, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians for the given observable feature.
 8. The apparatus of claim 1 wherein each compressed variance for a given Gaussian of a given observable feature is equal to a function of an inverse of a first product, wherein the first product is a product of 2 with a corresponding uncompressed variance and a factor, wherein the factor is equal to a sum divided by a second product, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians for the given observable feature where the second product is a product of M and a global scaling factor chosen to optimize recognition accuracy, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the quantity otherwise.
 9. The apparatus of claim 8 wherein the global scaling factor chosen to optimize recognition accuracy is equal to about
 30. 10. The apparatus of claim 8 wherein the global scaling factor chosen to optimize recognition accuracy is the argmin of the sum over all M Gaussians of the sum over all features of the integral with respect to each given feature of the difference between the Gaussian probability distribution functions and the compressed probability distribution functions.
 11. The apparatus of claim 1 wherein each compressed probability distribution function includes an exponential of a product of a universal scalar and a sum, wherein the sum is a sum over all features of a product of a square of a difference multiplied by a compressed variance value for an observable feature, wherein the difference is a difference between a compressed value of an observable feature and a corresponding compressed mean value for the observable feature, wherein the universal scaling factor is equal to −2 divided by the cube of a global scaling factor chosen to optimize recognition accuracy, wherein the compressed variance value is equal to a function of an inverse of a first product, wherein the first product is a product of 2 with a corresponding uncompressed variance and a factor, wherein the factor is equal to a sum divided by a second product, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians for the given observable feature where the second product is a product of M and the global scaling factor chosen to optimize recognition accuracy, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the inverse of the first product otherwise.
 12. The apparatus of claim 11, further comprising, a value of the global scaling factor has been empirically determined to optimize recognition accuracy.
 13. The method of claim 1 wherein the recognizable pattern is a most likely, phoneme or word for the time window.
 14. An apparatus for reducing use of runtime memory in a data processing algorithm that uses one or more Gaussian probability distribution functions for one or more different states of features x_(i) that make up portions of an observed speech signal, wherein the Gaussian probability distribution functions include M Gaussian functions of N different observable features, each Gaussian function representing the probability distribution for a different one of M possible Gaussians, each Gaussian function being characterized by an uncompressed mean and an uncompressed variance, the apparatus comprising: means for processing the observed speech signal to determine the observable features for a time window; means for representing the one or more different states of the features with the M Gaussian probability distribution functions, wherein the uncompressed mean and variance values are represented by α-bit floating point numbers, where α is an integer greater than 1; means for converting the probability distribution functions to compressed probability functions having compressed mean and/or variance values represented as β-bit integers, where β is less than α, whereby the compressed mean and/or variance values occupy less memory than the uncompressed mean and/or variance values, wherein each compressed mean value is equal to a function of a quantity, wherein the quantity is product of a difference between the uncompressed variance and a centroid of the means for a given observable feature for all possible Gaussians with a variance for the given observable feature for all possible Gaussians, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the quantity otherwise; and means for determining a most likely state of the features from the M Gaussian functions with the compressed mean and variance values; and means for recognizing a recognizable pattern within the observed speech signal for the time window using the most likely state.
 15. A speech signal recognition method, comprising: observing N different features of an observed speech signal representing a real-world process; setting up M different probability distribution functions of the N different observable features with a signal processor, wherein each probability distribution function represents a probability of a different one of M possible Gaussians of a portion of the observed speech signal, wherein each Gaussian is characterized by a corresponding uncompressed mean a corresponding uncompressed variance, processing the observed speech signal with the signal processor to determine the observable features for a time window and represent the one or more different states of the features with the M Gaussian probability distribution functions, wherein the uncompressed mean and variance values are represented by α-bit floating point numbers, where α is an integer greater than 1; converting the probability distribution functions with the signal processor to compressed probability functions having compressed mean and/or variance values represented as β-bit integers, where β is less than α, whereby the compressed mean and/or variance values occupy less memory than the uncompressed mean and/or variance values, calculating a probability for each of the M possible Gaussians with the signal processor using the compressed probability functions wherein each compressed mean value is equal to a function of a quantity, wherein the quantity is product of a difference between the uncompressed variance and a centroid of the means for a given observable feature for all possible Gaussians with a variance for the given observable feature for all possible Gaussians, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the quantity otherwise, determining a most probable state with the processor from the calculated probabilities for the M possible Gaussians; and recognizing a recognizable pattern within the observed speech signal with the signal processor for the time window using the most probable state.
 16. The method of claim 15 wherein converting the probability distribution functions to compressed probability functions includes compressing values for one or more observable features from α-bit floating point type to β-bit integer type.
 17. The method of claim 15 wherein α is 32 and β is
 8. 18. The method of claim 15 wherein the centroid of the means for a given observable feature for all possible Gaussians is equal to a sum of the uncompressed means for the M Gaussians divided by M.
 19. The method of claim 15 wherein the variance for a given observable feature for all possible Gaussians is equal to an integer global scaling factor chosen to optimize recognition accuracy multiplied by a square root, wherein the square root is a square root of a quotient, wherein the quotient is a sum divided by M, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians.
 20. The method of claim 15 wherein converting the probability distribution functions to compressed probability functions includes compressing values for the one or more observable features from α-bit floating point type to compressed observable feature values of β-bit integer type.
 21. The method of claim 20 wherein each compressed observable feature value is equal to a function of a quantity, wherein the quantity is a product of a difference between a given observable feature value and the centroid of the means for a given observable feature for all possible Gaussians with the variance for the given observable feature for all possible Gaussians, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the quantity otherwise.
 22. The method of claim 21 wherein the centroid of the means for a given observable feature for all possible Gaussians is equal to a sum of the uncompressed means for the M Gaussians divided by M.
 23. The method of claim 21 wherein the variance for a given observable feature for all possible Gaussians is equal to an integer global scaling factor chosen to optimize recognition accuracy multiplied by a square root, wherein the square root is a square root of a quotient, wherein the quotient is a sum divided by M, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians for the given observable feature.
 24. The method of claim 15 wherein each compressed variance for a given Gaussian of a given observable feature is equal to a function of an inverse of a first product, wherein the first product is a product of 2 with a corresponding uncompressed variance and a factor, wherein the factor is equal to a sum divided by a second product, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians for the given observable feature where the second product is a product of M and a global scaling factor chosen to optimize recognition accuracy, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the quantity otherwise.
 25. The method of claim 24 wherein the global scaling factor chosen to optimize recognition accuracy is equal to about
 30. 26. The method of claim 24 wherein the global scaling factor chosen to optimize recognition accuracy is the argmin of the sum over all M Gaussians of the sum over all features of the integral with respect to each given feature of the difference between the Gaussian probability distribution functions and the compressed probability distribution functions.
 27. The method of claim 21 wherein each compressed probability distribution function includes an exponential of a product of a universal scalar and a sum, wherein the sum is a sum over all features of a product of a square of a difference multiplied by a compressed variance value for an observable feature, wherein the difference is a difference between a compressed value of an observable feature and a corresponding compressed mean value for the observable feature, wherein the universal scaling factor is equal to −2 divided by the cube of a global scaling factor chosen to optimize recognition accuracy, wherein the compressed variance value is equal to a function of an inverse of a first product, wherein the first product is a product of 2 with a corresponding uncompressed variance and a factor, wherein the factor is equal to a sum divided by a second product, wherein the sum is a sum of inverses of the uncompressed variances for the M Gaussians for the given observable feature where the second product is a product of M and the global scaling factor chosen to optimize recognition accuracy, wherein the function is equal to 2^(β)−1, if the quantity is greater than 2^(β)−1, wherein the function is equal to −(2^(β)−1) if the quantity is less than −(2^(β)−1), and wherein the function is equal to a fixed point representation of the inverse of the first product.
 28. The method of claim 27, further comprising, empirically determining a value of the global scaling factor that optimizes recognition accuracy.
 29. The method of claim 27 wherein the global scaling factor is an integer between 1 and
 100. 30. The method of claim 27 wherein α=32, β=8 and the global scaling factor is equal to
 30. 31. The method of claim 15 wherein determining the most probable state includes selecting a maximum probability from among the probabilities for the M possible Gaussians.
 32. The method of claim 15 wherein observing the N different features includes converting a time domain signal to a cepstrum characterized by a plurality of cepstral coefficients wherein the N features include selected cepstral coefficients.
 33. The method of claim 15 wherein the recognition method is a speech recognition method or optical character recognition method.
 34. The method of claim 15 wherein the recognition method uses a hidden Markov model. 